// AFTER-WARNING: Parameter 'args' is never used
// AFTER-WARNING: Variable 'p' is never used
// AFTER-WARNING: Parameter 'f1' is never used
fun foo(f1: () -> Unit, f2: () -> Unit) {
    f2()
}

fun main(args: String) {
    foo({}, <caret>fun() {
        val p = 1
    })
}